package com.magold.game.factory;

import com.magold.io.XMLReader;
import com.magold.logic.ISpriteLogic;
import com.magold.logic.region.FogRegion;

public class FogRegionFactory extends BaseLogicFactory {

	public FogRegionFactory() {
		super(FogRegion.class.getSimpleName());
	}

	@Override
	protected ISpriteLogic createSafely(XMLReader pReader) {
		float width = pReader.getFloat("width");
		float height = pReader.getFloat("height");

		return new FogRegion(width, height);	}

}
